package com.lgx.mall.core.dao;

import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mall.core.entity.ScoreCard;

public interface IScoreCardDao {
	public ScoreCard createScoreCard(ScoreCard sCard) throws DataException;     //创建积分卡
	public ScoreCard updateScoreCard(ScoreCard sCard) throws DataException;     //修改积分卡
	public void deleteScoreCard(ScoreCard sCard) throws DataException;          //删除积分卡
	public void deleteScoreCard(Long id) throws DataException;                  //删除积分卡
	
	public ScoreCard findScoreCardById(Long id);           						//查找积分卡
	public Pagination findScoreCardPagination(String card,String scoreStar,
			String scoreEnd,String effectiveTimeStart,String effectiveTimeEnd,
			int pageSize,int pageNum);           								//查找积分卡
	public List<ScoreCard> findsScoreCardbyCard(String card);                   //根据卡号前缀检索id最大的卡号
	
	public List<ScoreCard> checkedScoreCard(String card,String password,String time);   //检查要使用的积分卡是否可用，即isDelete为0并且locked为0
}
